package com.maiji.cloud.entities.shopingmall;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.Date;

@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "shoping_order_edit_log")
public class ShopingOrderEditLog {

    @TableId
    @Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId;

    @Column(name = "order_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String orderId;

    @Column(name = "order_no", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String orderNo;

    @Column(name = "delivery_fee", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double deliveryFee;  // 原配送费

    @Column(name = "delivery_fee_new", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double deliveryFeeNew;  // 新配送费

    @Column(name = "amount", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double amount;  // 原订单金额

    @Column(name = "amount_new", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double amountNew;  // 新订单金额

    @Column(name = "shoping_address_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String shopingAddressId; // 收货地址ID

    @Column(name = "consignee", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String consignee; // 原收货人

    @Column(name = "consignee_new", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String consigneeNew; // 新收货人

    @Column(name = "tel", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String tel; // 原收货电话

    @Column(name = "tel_new", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String telNew; // 新收货电话

    @Column(name = "area_info_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String areaInfoId; // 收货地址ID

    @Column(name = "shoping_address", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String shopingAddress; // 原收货地址

    @Column(name = "shoping_address_new", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String shopingAddressNew; // 新收货地址

    @Column(name = "edit_date", type = MySqlTypeConstant.DATETIME)
    private Date editDate; // 编辑时间

    @Column(name = "operator_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String operatorId; // 操作者ID

    @Column(name = "operator_name", type = MySqlTypeConstant.VARCHAR, length = 20)
    private String operatorName; // 操作者账号

}
